<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <script src="qn_sdk.js"></script>

  <script>
console.log('qn_sdk', QN)


let a = {
  "visfat": 9,
  "bodyAge": 41,
  "muscleMass": 53.46,
  "user_id": 5,
  "subfat": 24.7,
  "weight": 78.05,
  "bmi": 27,
  "update_time": "2020-05-07 13:40:32",
  "bodyfat": 27.9,
  "water": 52.1,
  "bmr": 1585,
  "bodyShape": 6,
  "score": 73.5,
  "create_time": "2020-05-07 13:40:32",
  "protein": 16.4,
  "muscle": 46.6,
  "lbm": 56.31,
  "bone": 2.82,
  "report_id": 50
}
a.birthday = '1980-05-22'
a.gender = 1
a.height = 170
// a.time = 1273141154000
console.log('a', a)
let resultData = QN.reportData(a)

console.log('resultData', resultData)
resultData.reportItemList.forEach((item, i) => {
  console.log(i, item.name, item.value, item.level, item.levelNames[item.level], item.boundaries)
})
  </script>
</head>
<body>
  
</body>
</html>